package com.us.model;

import java.io.File;

public class DelApp {
    public static void main(String[] args) {
        File file = new File("/Volumes/Develop/WorkStation/WS4Java/S4Work/BaseWeb");
        delFile(file);
    }

    static void delFile(File file) {
        for (File f : file.listFiles()) {
            if (f.isDirectory()) {
                delFile(f);
                System.out.println(f.getAbsolutePath());
                f.delete();
            } else {
                if (f.getAbsolutePath().indexOf(".svn") > 0) {
                    f.delete();
                }
            }
        }
    }
}
